<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes();?>>
	<head>
		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type');?>; charset=<?php bloginfo('charset');?>" />
		<title><?php
			global $page, $paged;
			?>
			<?php if ( is_home() || is_front_page() ) { ?><?php bloginfo('name');?>  <?php bloginfo('description');?>
			<?php } elseif ( is_search() ) {?> <?php _e('Search Results: ', 'mt-white');?><?php the_search_query();?>&nbsp;|&nbsp;<?php bloginfo('name');?>
			<?php } elseif  ( is_singular()  ) {?><?php wp_title('|', true, 'right');?>  <?php
				if($paged >= 2 || $page >= 2) {
					echo sprintf(__('Page %s |', 'mt-white'), max($paged, $page));
				}
			?> <?php  bloginfo('name');?>
			<?php } elseif  ( is_category() ) {?><?php single_cat_title();?>| <?php _e('Category Archives', 'mt-white');?>| <?php bloginfo('name');?>
			<?php } elseif  ( is_month() ) {?><?php the_time( get_option('date_format'))
			?>| <?php _e('Archives', 'mt-white');?>| <?php bloginfo('name');?>
			<?php } elseif  ( is_tag() ) {?><?php  single_tag_title('', true);?>| <?php _e('Tag Archives', 'mt-white');?>&nbsp;|&nbsp;<?php bloginfo('name');?>
			<?php } elseif  ( is_404() ) {?> <?php _e('HTTP 404: Not Found', 'mt-white');?>&nbsp;|&nbsp;<?php bloginfo('name');?>
			<?php } else {?> <?php wp_title('|', true, 'right');
				bloginfo('name');
				}
			?></title>
		<link href="<?php bloginfo('stylesheet_url');?>" type="text/css" media="screen" charset="utf-8" rel="stylesheet" />
		<link rel="pingback" href="<?php bloginfo('pingback_url');?>" />
		<link rel="profile" href="http://gmpg.org/xfn/11" />
		<?php
			if(is_singular() && get_option('thread_comments')) { wp_enqueue_script('comment-reply');
			}
		?>
		<?php wp_head();?>
	</head>
	<body <?php body_class();?>>
		<div id="header">
			<div class="container_12">
				<?php $white_heading_tag = (is_home() || is_front_page()) ? 'h1' : 'h2';?>
				<<?php echo $white_heading_tag;?>><a href="<?php echo site_url();?>"><?php bloginfo('name');?></a>
				<em><?php bloginfo('description');?></em></<?php echo $white_heading_tag;?>>

<div class="clear"></div>
</div>
</div>
<div id="nav" >
<div class="container_12">
<?php  wp_nav_menu(array('sort_column' => 'menu_order', 'Primary Navigation', 'theme_location' => 'primary', 'container' => ' ', 'menu_class' => 'menu grid_12'));?>
				<div class="clear"></div>
			</div>
		</div>
